package models.common.bean;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

import common.constants.ConfConst;
import common.constants.Constants;
import common.utils.Security;

/**
 *@author xiaojun
 *@version 2017-7-31 下午1:51:48
 */
@Entity
public class QuotaApplicationBean implements Serializable{
	
	public QuotaApplicationBean(){}
	public QuotaApplicationBean(long id,String contract_name_code,String debt_person_name,double creditor_money,double rest_debt_money,int status){
		this.id = id;
		this.contract_name_code = contract_name_code;
		this.debt_person_name = debt_person_name;
		this.creditor_money = creditor_money;
		this.rest_debt_money = rest_debt_money;
		this.status = status;
	}
	@Id
	public long id;
	public String getId() {
		
		return Security.addSign(id, Constants.BID_ID_SIGN, ConfConst.ENCRYPTION_KEY_DES);
	}
	 /**合同名称和编号 */
    public String contract_name_code;
    /**债权人全称 */
//    public String creditor_name;
    /**债务人全称'*/
    public String debt_person_name;

    /**债权金额 */
    public double creditor_money;
    /**剩余债务金额*/
    public double rest_debt_money;
    /**状态*/
    public int status;
}
